package org.jeecg.modules.orderForm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.orderForm.entity.AggregationResult;
import org.jeecg.modules.orderForm.entity.OrderForm;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.orderForm.entity.VisitorAggregationsResult;

import java.util.List;
import java.util.Map;

/**
 * @Description: 订单
 * @author： jeecg-boot
 * @date：   2021-03-30
 * @version： V1.0
 */
public interface IOrderFormService extends IService<OrderForm> {
    List<OrderForm> getGroupBytakeOrdersMoney(Integer num);
    List<AggregationResult> queryAggregationsByMonth(Map<String,Object> map);
    AggregationResult queryTotalAggregations(Map<String,Object> params);
    List<String> queryDistinctYearList();
    /**
     * 按照用户聚合业绩，单量
     * @param page 分页参数
     * @param map 查询参数
     * @return IPage<VisitorAggregationsResult>
     * @author lixiao
     * @date 2021/4/9
     */
    IPage<VisitorAggregationsResult> queryVisitorAggregations(IPage<VisitorAggregationsResult> page, @Param("queryMap") Map<String,Object> map);

}
